package com.dkd.manage.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.dkd.common.annotation.Excel;
import com.dkd.common.core.domain.BaseEntity;

/**
 * 库存变动流水记录对象 inventory_transaction
 * 
 * @author 赵文楠
 * @date 2025-05-19
 */
public class InventoryTransaction extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 交易ID */
    private Long id;

    /** 餐具类型ID */
    @Excel(name = "餐具类型ID")
    private Long utensilTypeId;

    /** 数量变化(正数为增加，负数为减少) */
    @Excel(name = "数量变化(正数为增加，负数为减少)")
    private Long quantityChange;

    /** 交易类型 */
    @Excel(name = "交易类型")
    private String transactionType;

    /** 相关订单ID */
    @Excel(name = "相关订单ID")
    private Long relatedOrderId;

    /** 交易时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "交易时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date transactionTime;

    /** 操作员工ID */
    @Excel(name = "操作员工ID")
    private Long operatorId;

    /** 备注 */
    @Excel(name = "备注")
    private String notes;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUtensilTypeId(Long utensilTypeId) 
    {
        this.utensilTypeId = utensilTypeId;
    }

    public Long getUtensilTypeId() 
    {
        return utensilTypeId;
    }
    public void setQuantityChange(Long quantityChange) 
    {
        this.quantityChange = quantityChange;
    }

    public Long getQuantityChange() 
    {
        return quantityChange;
    }
    public void setTransactionType(String transactionType) 
    {
        this.transactionType = transactionType;
    }

    public String getTransactionType() 
    {
        return transactionType;
    }
    public void setRelatedOrderId(Long relatedOrderId) 
    {
        this.relatedOrderId = relatedOrderId;
    }

    public Long getRelatedOrderId() 
    {
        return relatedOrderId;
    }
    public void setTransactionTime(Date transactionTime) 
    {
        this.transactionTime = transactionTime;
    }

    public Date getTransactionTime() 
    {
        return transactionTime;
    }
    public void setOperatorId(Long operatorId) 
    {
        this.operatorId = operatorId;
    }

    public Long getOperatorId() 
    {
        return operatorId;
    }
    public void setNotes(String notes) 
    {
        this.notes = notes;
    }

    public String getNotes() 
    {
        return notes;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("utensilTypeId", getUtensilTypeId())
            .append("quantityChange", getQuantityChange())
            .append("transactionType", getTransactionType())
            .append("relatedOrderId", getRelatedOrderId())
            .append("transactionTime", getTransactionTime())
            .append("operatorId", getOperatorId())
            .append("notes", getNotes())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
